var user = getWebUser();
var canSee = getItemValueAsString("ywlx");
var status = "none";
if ("常规完善类".equals(canSee)) {
    status = "table-row";
}
var flag = true;
var script_str =
    "<script> " +
    "var flag = true; " +
    "var userAgentInfo = navigator.userAgent;" +
    "var Agents = ['Android', 'iPhone','SymbianOS','Windows Phone', 'iPad', 'iPod']; " +
    "flag = userAgentInfo.indexOf('Android') > -1 || userAgentInfo.indexOf('iPhone') > -1 || userAgentInfo.indexOf('SymbianOS') > -1 || userAgentInfo.indexOf('Windows Phone') > -1 || userAgentInfo.indexOf('iPad') > -1 || userAgentInfo.indexOf('iPod') > -1 ? false : true;" +
    "if(flag) {" + //PC客户端的逻辑
    "   var array1 = document.getElementsByClassName('tr-hide-Tab-workload-new'); " +
    "   for (var i=0;i<array1.length;i++) {" +
    "       array1[i].style.display = '" + status + "'; " +
    "   } " +
    "} else {" + //移动端的逻辑
    "   var box = document.getElementById('11e8-3eec-5c594bbd-8322-274e86807188_divid');" +
    "   for (var t = 0; t < 4; t++) {" +
    "       box.style.display = '" + status + "';" +
    "       box = box.nextElementSibling;}}" +
    "</script>";
script_str;